﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutoTLBB
{
	public partial class BloodManControl : UserControl
	{
		private int m_currentMana;
		private int m_currentBlood;
		private int m_maxBlood;
		private int m_maxMana;
		public BloodManControl()
		{
			InitializeComponent();
			m_blood.ForeColor = Color.Red;
			m_mana.ForeColor = Color.Green;
		}
		[Description("MaxBlood"), Category("Data")]
		public int MaxBlood
		{
			get
			{
				return m_maxBlood;
			}
			set
			{
				if (m_maxBlood != value)
				{
					m_maxBlood = value;
					m_blood.Maximum = value;
				}
			}
		}
		[Description("MaxMana"), Category("Data")]
		public int MaxMana
		{
			get { return m_maxMana; }
			set { m_maxMana = value; m_mana.Maximum = value; }
		}
		[Description("CurrentBlood"), Category("Data")]
		public int CurrentBlood
		{
			get { return m_currentBlood; }
			set
			{
				m_currentBlood = value;
				m_blood.Value = value;
			}
		}
		[Description("CurrentMana"), Category("Data")]
		public int CurrentMana
		{
			get { return m_currentMana; }
			set { m_currentMana = value; m_mana.Value = value; }
		}
		[Description("ManaVisible"), Category("Data")]
		public bool ManaVisible
		{
			get
			{
				return m_mana.Visible;
			}
			set
			{
				m_mana.Visible = value;
			}
		}
	}
}
